package com.zzyl.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.zzyl.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
/**
 * 护理项目实体类
 */
@ApiModel(description = "护理项目表")
public class NursingProject extends BaseEntity {

    /**
     * 编号
     */
    @ApiModelProperty(value = "编号", example = "1")
    private Long id;

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称", example = "基础护理")
    private String name;

    /**
     * 排序号
     */
    @ApiModelProperty(value = "排序号", example = "1")
    private Integer orderNo;

    /**
     * 单位
     */
    @ApiModelProperty(value = "单位", example = "次")
    private String unit;

    /**
     * 价格
     */
    @ApiModelProperty(value = "价格", example = "120.00")
    private BigDecimal price;

    /**
     * 图片
     */
    @ApiModelProperty(value = "图片", example = "http://example.com/image.jpg")
    private String image;

    /**
     * 护理要求
     */
    @ApiModelProperty(value = "护理要求", example = "无特殊要求")
    private String nursingRequirement;

    /**
     * 状态（0：禁用，1：启用）
     */
    @ApiModelProperty(value = "状态（0：禁用，1：启用）", example = "1")
    private Integer status;

    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人", example = "张三")
    private Long createBy;

    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人", example = "李四")
    private Long updateBy;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注", example = "这是一个测试项目")
    private String remark;

    /**
     * 创建时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss")
    @ApiModelProperty(value = "创建时间", example = "2023-01-01T12:00:00")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss")
    @ApiModelProperty(value = "更新时间", example = "2023-01-01T12:00:00")
    private LocalDateTime updateTime;
}